package SwingComponents;

import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class UserLoginPanel extends JPanel {

    private JButton loginButton;
    private JButton cancelButton;
    private JLabel username;
    private JLabel password;
    private JTextField userField;
    private JPasswordField passwordField;
    
    public UserLoginPanel() {
        this.setSize(new Dimension(501, 701));
        this.setPreferredSize(new Dimension(501, 701));
        this.setMaximumSize(new Dimension(501, 701));
        this.setMinimumSize(new Dimension(501, 701));
        
        loginButton = new JButton("Log in");
        
        username = new JLabel("User name");
        
        password = new JLabel("Password");
        
        cancelButton = new JButton();
        
        userField = new JTextField();
        
        passwordField = new JPasswordField();
        
        this.add(username);
        this.add(userField);
        this.add(password);
        this.add(passwordField);
        this.add(loginButton);
        this.add(cancelButton);
    }

    public JButton getLoginButton() {
        return loginButton;
    }

    public JButton getCancelButton() {
        return cancelButton;
    }

    public JTextField getUserField() {
        return userField;
    }

    public JPasswordField getPasswordField() {
        return passwordField;
    }
}
